<template>
	<view class="shougu">
		<view class="syspadding navbar">
			<view class="navbarh acea-row row-between-wrapper">
				<view class="acea-row row-middle backbtn" @click="back">
					<image class="back" src="../../static/images/back.png" mode="aspectFit"></image>
					<text style="margin-left: -10rpx;">返回</text>
				</view>
				<view class="fs-30">任职受雇信息</view>
				<view class="backbtn"></view>
			</view>
		</view>
		<view style="width: 100%;height: 190rpx;"></view>
		
		<view class="list">
			<view class="item" v-for="(item,index) in list" :key="index">
				<view class="fs-34">{{ item.gongsi_name }}</view>
				<view class="mt-20 fs-30 fc-888 text">统一社会信用代码：{{ item.creditCode }}</view>
				<view class="mt-20 fs-30 fc-888 text">职务：{{ item.zhiwu || '-' }}</view>
				<view class="mt-20 fs-30 fc-888 text">任职受雇日期：{{ item.zhiwuDate || '-' }}</view>
				<view class="mt-20 fs-30 fc-888 text">离职日期：{{ item.lizhiDate || '-' }}</view>
			</view>
		</view>
		
		<view style="width: 100%;height: 100rpx;"></view>
		
	</view>
</template>

<script>
	import { staffList } from '@/api/user.js'
	export default {
		data() {
			return {
				list:[],
				
			};
		},
		onShow() {
			this.getlist();
		},
		methods:{
			getlist(){
				let that = this;
				staffList().then(res=>{
					that.list = res.data.data;
				})
			},
			back(){
				uni.navigateBack();
			}
		}
	}
</script>

<style lang="scss" scoped>
	.shougu{
		
		.list{
			width: 100rpx;
			padding: 0 30rpx;
			
			.item{
				width: 690rpx;
				margin-bottom: 20rpx;
				background-color: #ffffff;
				border-radius: 10rpx;
				padding: 40rpx;
				
				.text{
					word-break: break-all;
				}
			}
		}
		
		.navbar{
			position: fixed;
			top: 0;
			left: 0;
			right: 0;
			width: 100vw;
			background-color: #ffffff;
			
			.navbarh{
				width: 100%;
				height: 100rpx;
				padding: 0 30rpx;
				
				.backbtn{
					color: #5186E6;
					width: 150rpx;
				}
				.back{
					width: 60rpx;
					height: 60rpx;
					margin-left: -20rpx;
				}
			}
		}
	}
</style>
